package com.wpam.scrabble.mobile.communication;

import android.widget.Toast;

import com.wpam.scrabble.mobile.GameResources;

public class ToastRunnable implements Runnable {

	private String message_;
	private boolean shortTime_;
	
	public ToastRunnable(String message, boolean shortTime) {
		
		this.message_ = message;
		this.shortTime_ = shortTime;
	}
	
	public void run() {
		Toast.makeText(GameResources.getInstance().getContext(), message_, (shortTime_ ? Toast.LENGTH_SHORT : Toast.LENGTH_LONG)).show();
	}
	
}